package com.wangjiyuan.giftshuo.ui.fragment.listtop.other;

import com.wangjiyuan.giftshuo.base.IBaseModel;
import com.wangjiyuan.giftshuo.base.IBasePresenter;
import com.wangjiyuan.giftshuo.base.IBaseView;
import com.wangjiyuan.giftshuo.bean.listtopbean.commentbean.CommentBean;
import com.wangjiyuan.giftshuo.bean.listtopbean.everydaybean.EveryDayBean;
import com.wangjiyuan.giftshuo.bean.listtopbean.maybelikebean.MayBeLikeBean;
import com.wangjiyuan.giftshuo.bean.listtopbean.singleproductbean.SingleProductBean;

import java.util.Map;

import retrofit2.http.Url;
import rx.Observable;

/**
 * Created by ZangSyeriong on 2016/11/15.
 *
 * 把MVP作为内部接口放在此类中
 */

public class ListTopContract {

    public static interface IListTopModel extends IBaseModel{

        Observable<EveryDayBean> getEveryDayData(int path, Map<String, String> params);

        Observable<MayBeLikeBean> getMayBeLikeData(int path);

        Observable<CommentBean> getCommentData(int path);

        Observable<SingleProductBean> getSingleProductData(int path);
    }

    public static interface IListTopPresenter extends IBasePresenter{

        public void getEveryDayData(int path, Map<String, String> params);

        public void getMayBeLikeData(int path);

        public void getCommentData(int path);

        public void getSingleProductData(int path);

    }

    public static interface IListTopView extends IBaseView{

        void showProgress();

        void hideProgress();

        void showErrorInfo(String msg);

        void getEveryDayData(EveryDayBean everyDayBean);

        void getMayBeLikeData(MayBeLikeBean mayBeLikeBean);

        void getCommentData(CommentBean commentBean);

        void getSingleProductData(SingleProductBean singleProductBean);
    }
}
